package com.ld.caodan.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class NumberUtils {
	
	
	public static String getNum(String str){
		Pattern pattern = Pattern.compile("\\d*");
		Matcher matcher = pattern.matcher(str);
		StringBuffer buffer = new StringBuffer();
		while(matcher.find()){
			if(!"".equals(matcher.group())){
				buffer.append(matcher.group());
			}
		}
		return buffer.toString();
	}

}
